home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Astronomy
/
StarAtlas
/
StarAtlasV2.app
/
README
< prev
next >
Wrap
Text File
|
1992-12-20
|
4KB
|
102 lines
______________________________________________________________________________
S T A R A T L A S D A T A B A S E - R E A D M E
______________________________________________________________________________
FILES IN StarAtlasV2.app/:
StarAtlasV2 StarAtlasV2 executable
sao.nib StarAtlasV2 nib file
sao.deepsky File containing information about deepsky objects
sao.stars File containing information about brightest stars
sao.bin File containing binary data about 100000 stars
sao.const File containing information about constellations
___________________________________________________________________________________________________
SAO.DEEPSKY file is in ascii format. You can edit it if you want. There are all the messier objects. The format of the file is:
ObjectCharacter M=messier
Messier_Code (1 .... 111)
Object_type 1=Galaxy,2=Clust+neb,3=Plan Neb,4=OpenClus,5=GlobClus,6=Gaas Neb, 7=DoubleStar
RightAscHour (0 ... 24)
RightAscMinute (0 ... 60)
DeclinationDegree (-90 .. 90)
DeclinationMinute (0 ... 60)
Example: If you want to install object M52, which is OPENCLUSTER and location is RA: 23h 24.2m DE: +61d 35m
M 52 4 23 24.2 +61 35
___________________________________________________________________________________________________
SAO.STARS file is in ascii format and you can edit it if you want to. There are the brightest stars. Format of the file is:
RaHour (0 .. 24)
RaMin (0 .. 60)
RaSec (0 .. 60)
DeDegree (-90 .. 90)
DeMin (0 .. 60)
DeSec (0 .. 60 )
Magnitude (-float .. float)
NameOfConstellation (ORI, PER, AND, PEG, LYR, LEO,......)
NameOfStar (String[30] - There has to something. Space is not enough)
Example 6 45 8.9 -16 42 58 -1.46 CMA Sirius
___________________________________________________________________________________________________
SAO.CONST File has similar format as SAO.STARS. File has information how to draw constellations. The drawingformat is
from one star to another star.
Example
5 35 8.2 9 56 3 3.66 ORI Meissa (moveto this region)
5 25 7.8 6 20 59 1.64 ORI Bellatrix (draw line to this region)
5 25 7.8 6 20 59 1.64 ORI Bellatrix (moveto this region)
5 32 0.3 0 17 57 2.23 ORI Mintaka (draw line to this region)
.......
..
.
.
I didn't found any databases about constellations so I had to write that data by myself. It was not so nice to do, because there
is not enough stars in SAO.STARS. I had to find those missing stars from SkyAtlas2000, Find the coordinates and write
them to SAO.CONST
If you will write more constellations to this file could you please send it to me? tomi@cc.tut.fi
__________________________________________________________________________________________________
SAO.BIN is binary file and it contains information about 100000 stars. You can read them by this code:
f=fopen("sao.bin","r");
while (!feof(f))
{
RIGHT_ASC_HOUR=fgetc(f);
RIGHT_ASC_MINUTE=fgetc(f);
RIGHT_ASC_SECOND=fgetc(f);
DECLINATION_DEGREE=fgetc(f);
DECLINATION_DEGREE=DECLINATION_DEGREE - 128.0;
DECLINATION_MINUTE=fgetc(f);
if (DECLINATION_DEGREE <= 0)DECLINATION_MINUTE=-DECLINATION_MINUTE;
MAGNITUDE=fgetc(f);
STARTYPE=fgetc(f);
MAGNA[I] = (MAGNITUDE-1)/2;
ALFA2[I] =((RIGHT_ASC_HOUR*3600+RIGHT_ASC_MINUTE*60+RIGHT_ASC_SECOND)/(24*3600))*2*Pii;
DELTA2[I] =((DECLINATION_DEGREE*3600+DECLINATION_MINUTE*60)/(90*3600))*Pii/2;
}
fclose(f);
___________________________________________________________________________________________________
Any questions: Tomi Heinonen
Opiskelijankatu 9B31
33720 TAMPERE
Finland
email: tomi@cc.tut.fi
___________________________________________________________________________________________________